package com.airticketbooking.service.serviceImpl;

import com.airticketbooking.po.Flight;
import com.airticketbooking.mapper.FlightMapper;
import com.airticketbooking.service.FlightService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author Mr.J
 * @version 1.0.0
 * @date 2024/10/21
 * @desc
 */
@Service
@RequiredArgsConstructor
public class FlightServiceImpl implements FlightService {

     private final FlightMapper flightMapper;

	@Override
	public Flight getFlightById(Integer flightId) {

		return flightMapper.getFlightById(flightId);
	}

	@Override
	public Integer getAirplaneIdById(Integer flightId) {


		return flightMapper.getAirplaneIdById(flightId);

	}

}
